import time
import datetime

t1 = time.gmtime(0o5155040*1000)
st1 = time.strftime('%Y-%m-%d-%H',t1)
def test_t1():
    tn = time.gmtime(time.time())
    stn = time.strftime('%Y-%m-%d',tn)
    y0,m0,d0 = [int(i) for i in stn.split('-')]
    dn0 = datetime.date(y0, m0,d0)
    d1 = datetime.date(2013, 4,21)
    dtd = dn0 - d1
    assert st1 == '2013-04-21-16'
    print(dtd.days)
